package xyz.luhui1hao.sell.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import xyz.luhui1hao.sell.utils.serializer.Date2LongSerializer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName OrderDetail
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/8/21 下午2:27
 * @Version 1.0
 */
@Data
public class OrderDetail {
    //订单详情Id
    private String detailId;
    //订单Id
    private String orderId;
    //商品Id
    private String productId;
    //商品名称
    private String productName;
    //当前价格，单位(分)
    private BigDecimal productPrice;
    //数量
    private Integer productQuantity;
    //小图
    private String productIcon;
    //创建时间
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createTime;
    //修改时间
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updateTime;
}
